{include file="public/header" /}
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页
    <span class="c-gray en">&gt;</span> 用户管理
    <span class="c-gray en">&gt;</span> 每日收益
    <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a>
</nav>
<div class="page-container">
    <form  method="get" action="">
        <div class="text-c">
            日期范围：
            <input type="text" onfocus="WdatePicker()" value="{:input('get.start')}" name="start" id="datemin" class="input-text Wdate" style="width:120px;">
             -
            <input type="text" onfocus="WdatePicker()" value="{:input('get.end')}" name="end" id="datemax" class="input-text Wdate" style="width:120px;">
            <input type="text" class="input-text" style="width:100px" placeholder="UID" value="{:input('word')}" name="word">
            <span class="select-box" style="width: 100px">
               <select name="receive" class="select">
                <option value="-1">状态</option>
                <option value="0" {if isset($_GET['receive']) && $_GET['receive'] == '0'}selected{/if}>未领取</option>
                   <option value="1" {if isset($_GET['receive']) && $_GET['receive'] == '1'}selected{/if}>已领取</option>
            </select>
            </span>

            <button type="submit" class="btn btn-success">搜索</button>
        </div>
    </form>

    <div class="cl pd-5 bg-1 bk-gray mt-20">
        <span class="l">
        </span>
        <span class="r">共有数据：<strong>{$list->total()}</strong> 条</span> </div>
    <table class="table table-border table-bordered table-hover table-bg">
        <thead>
            <tr>
                <th scope="col" colspan="9">账户列表</th>
            </tr>
            <tr class="text-c">
                <th width="30">ID</th>
                <th width="30">UID</th>
                <th width="100">加速释放USDT</th>
                <th width="100">加速释放CPA</th>
                <th width="100">团队收益赠送CPA</th>
                <th width="80">时间</th>
                <th width="30">状态</th>
            </tr>
        </thead>
        <tbody>
            {foreach $list as $v}
            <tr class="text-c">
                <td>{$v.id}</td>
                <td>{$v.uid}</td>
                <td>{$v.usdt}</td>
                <td>{$v.cpa}</td>
                <td>{$v.cpa_add}</td>
                <td>{$v['time']}</td>
                <td>
                    {switch name=$v.receive}
                    {case value="0"}<span style="color: red">未领取</span>{/case}
                    {case value="1"}<span style="color: green">已领取</span>{/case}
                    {default /}无效状态
                    {/switch}
                </td>
            </tr>
            {/foreach}
        </tbody>
    </table>
    <div class="page">
        {$list->render()|raw}
    </div>
</div>

{include file="public/footer" /}